//
//  TKIMPopView.h
//  TKIM
//
//  Created by macpro on 15/12/2.
//  Copyright © 2015年 liupm. All rights reserved.
//

#import <UIKit/UIKit.h>

//子菜单按钮的高度
#define kSubButtonHeight 40
//子菜单按钮字体大小
#define kSubButtonFont [UIFont systemFontOfSize:13]
//线条的宽度
#define kSepLineWidth 0.5
//动画时间
static CGFloat animationDuration = 0.25;

#define TKIMSubMenuClickEvent @"TKIMSubMenuClickEvent"

@interface TKIMPopView : UIView
/**
 *  显示子菜单
 *
 *  @param frame    选中的主菜单
 *  @param subMenus 子菜单的内容
 */
-(void)showSubMenuViewWithSelectedButtonFrame:(CGRect)frame andSubMenus:(NSArray *)subMenus;
/**
 *  隐藏子菜单
 *
 *  @param height 动画的高度
 */
-(void)hideSubMenuWithAnimationHeight:(CGFloat)height;

/**选择主菜单button*/
@property (nonatomic,strong)UIButton * menuButton;

@end
